package org.jtzc.springaiagent.agent.adaptive;

import java.util.Random;

/**
 * @author wu chuang
 * @description
 */
public class PerformanceMetrics {
    String prompt;
    long duration;
    Object quality;

    public PerformanceMetrics(String prompt, long duration, Object quality) {
        this.prompt = prompt;
        this.duration = duration;
        this.quality = quality;
    }

    public PerformanceMetrics() {

    }

    public String getPrompt() {
        return prompt;
    }

    public void setPrompt(String prompt) {
        this.prompt = prompt;
    }

    public long getDuration() {
        return duration;
    }

    public void setDuration(long duration) {
        this.duration = duration;
    }

    public Object getQuality() {
        return quality;
    }

    public void setQuality(Object quality) {
        this.quality = quality;
    }

    public double averageResponseTime() {
        return new Random(2).nextDouble();
    }

    public double successRate() {
        return new Random(2).nextDouble();
    }

    public double averageQualityScore() {
        return new Random(2).nextDouble();
    }
}
